import { createRouter, createWebHistory } from 'vue-router'


const routes = [
  {
    name: '404',
    path: '/404',
    component: () => import('@v/error/404.vue')
  },
  {
    name: '401',
    path: '/401',
    component: () => import('@v/error/401.vue')
  },
  {
    path: '',
    redirect: 'home',
    component: () => import('@/layout/index.vue'),
    children: [
      {
        path: 'home',
        name: 'Home',
        component: () => import('@/views/home/index.vue'),
      }
    ]
  },
]
export default createRouter({
  history: createWebHistory(),
  routes
})

